//
//  KyDemoViewController.swift
//  KySwiftPro
//
//  Created by fangyukui on 2017/10/17.
//  Copyright © 2017年 fangyukui. All rights reserved.
//

import UIKit

class KyDemoViewController: KyBaseViewController {
    
    
    @objc private func nextpage(){
        
        let demoVc = KyDemoViewController()
        navigationController?.pushViewController(demoVc, animated: true)
        
        
        
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
            
        kyNaVItem.rightBarButtonItem = UIBarButtonItem(title: "下一页", target: self, action: #selector(nextpage))
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
